<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>宿舍费用管理</title>
	<meta name="decorator" content="default"/>
	<style type="text/css">
		.required{width:100px;}
	</style>
	
	<link type="text/css" rel="stylesheet" href="${ctxStatic}/css/dmsDormitoryFeeForm.css" />
	<script type="text/javascript" src="${ctxStatic}/js/dmsDormitoryFeeForm.js"></script>
	<script type="text/javascript" src="${ctxStatic}/layer/layer.js"></script>
	
</head>
<body>
	<ul class="nav nav-tabs">
		<%-- <li><a href="${ctx}/dormitoryfiee/dmsDormitoryFee/">宿舍费用列表</a></li> --%>
		<li class="active"><a href="${ctx}/dormitoryfiee/dmsDormitoryFee/form?id=${dmsDormitoryFee.id}">宿舍费用<shiro:hasPermission name="dormitoryfiee:dmsDormitoryFee:edit">${not empty dmsDormitoryFee.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="dormitoryfiee:dmsDormitoryFee:edit">查看</shiro:lacksPermission></a></li>
	</ul><br/>
	<form:form id="inputForm" modelAttribute="dmsDormitoryFee" action="${ctx}/dormitoryfiee/dmsDormitoryFee/save" method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<sys:message content="${message}"/>		
		<div class="control-group">
			<label class="control-label">宿舍号：</label>
			<div class="controls">
				<form:input path="dormitoryNumber" htmlEscape="false" maxlength="20" class="input-xlarge required" id="dormitoryNumberId" pattern="^[A-Z][0-9]{3}$"/>
				<span class="help-inline"><font color="red" id="msgInfo1">*</font> </span>
				<span class="help-inline"><font>（楼号+宿舍编号（如：A405））</font></span>
			</div>
		</div>
		 <div class="control-group">
			<label class="control-label">检查日期：</label>
			<div class="controls">
				<input name="checkDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate required" id="checkDateId"
					value="<fmt:formatDate value="${dmsDormitoryFee.checkDate}" pattern="yyyy-MM-dd"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
			</div>
		</div> 
		<div class="control-group">
			<label class="control-label">水电费：</label>
			<div class="controls">
				<form:input path="hydropowerFee" htmlEscape="false" maxlength="20" class="input-xlarge required" id="hydropowerFeeId"/>
			    <span class="help-inline"><font color="red" id="msgInfo2">*</font> </span>
				<span class="help-inline"><font>正确的费用格式（如：32或32.1或32.12）</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">其它费用：</label>
			<div class="controls">
				<form:input path="otherFee" htmlEscape="false" maxlength="20" class="input-xlarge required"/>
			    <span class="help-inline"><font color="red" id="msgInfo">*</font> </span>
				<span class="help-inline"><font>正确的费用格式（如：32或32.1或32.12）</font> </span>
			</div>
		</div>
		<div class="form-actions">
			<shiro:hasPermission name="dormitoryfiee:dmsDormitoryFee:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission>
			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
		</div>
	</form:form>
</body>
</html>